package domein;

/**
 * Exception to be thrown when a user attempts to use internet ports out of
 * range.
 *
 * @author Colin Bundervoet
 * @author Jeroen Pattyn
 */
public class PortOutOfRangeException
        extends IllegalArgumentException
{
    /**
     * Default constructor for PortOutOfRangeException class. Requires numerical
     * port data to function.
     *
     * @param value of the port being sent on
     * @param min minimum range to choose from
     * @param max maximum range to choose from
     */
    public PortOutOfRangeException(int value, int min, int max) {
        super("Portnumber " + value + " is out of range [" + min + "-" + max + "]");
    }
}
